Skip to content

Fix unsolicited AirGap responses on idle timeout - #18502

Merged
jt2594838 merged 2 commits into
apache:masterfrom
Caideyipi:fix/air-gap-idle-timeout-response
Aug 24, 2026
Merged

Fix unsolicited AirGap responses on idle timeout#18502
jt2594838 merged 2 commits into
apache:masterfrom
Caideyipi:fix/air-gap-idle-timeout-response

Conversation

@Caideyipi

@Caideyipi Caideyipi commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Treat receiver read timeouts before any request byte as normal idle periods.
  • Avoid sending unsolicited AirGap FAIL (0xff) responses on idle timeout.
  • Close a connection that times out after a partial request, without replying, so the sender can reconnect and retry from a clean frame boundary.
  • Add regression tests for idle and partial-request timeouts.

Tests

  • mvn -pl iotdb-core/datanode -Dtest=IoTDBAirGapReceiverTest -Dsurefire.failIfNoSpecifiedTests=false -DforkCount=0 test
  • 5 tests passed.
  • Checkstyle and Spotless passed.

The PR is based on apache/iotdb:master.

@jt2594838
jt2594838 merged commit 541b9a3 into apache:master Aug 24, 2026
41 checks passed
@jt2594838
jt2594838 deleted the fix/air-gap-idle-timeout-response branch August 24, 2026 02:54
jt2594838 pushed a commit that referenced this pull request Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants